<template>
  <div class="block">
    <div class="head">
      <div class="title">{{ title }}</div>
      <div>
        <slot name="right"></slot>
      </div>
    </div>
    <slot></slot>
  </div>
</template>
<script>
export default {
  props: ['title']
}
</script>
<style lang="scss" scoped>
.block {
  margin-bottom: 20px;
  .head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
  }
  .title {
    font-weight: bold;
    font-size: 20px;
  }
}
</style>